package com.example.design.shejimoshi.structure.flyweight.demo01;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description 棋子享元类
 * @date 2022/10/25 15:50
 * @Author liuzhihui
 * @Version 1.0
 */
@AllArgsConstructor
@Getter
@Setter
public class ChessPieceUnit {
    private int id;
    private String text;
    private Color color;

    public static enum Color {
        RED, BLACK
    }
}
